@import url("/static/uno.css");

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Noto Serif SC", serif;
    width: 100%;
    overflow-x: hidden;
}

* {
    line-height: 1.7em;
    margin: 0;
    padding: 0;
    letter-spacing: 0.5pt;
}

*::-webkit-scrollbar {
    display: none;
}

strong {
    font-weight: 700;
}

p, h6, li, hr {
    padding-top: 1em;
    font-weight: 400;
    font-size: 19px;
}

h5 {
    padding-top: 1em;
    font-weight: 500;
    font-size: 22px;
}

h4 {
    padding-top: 1em;
    font-weight: 600;
    font-size: 24px;
}

h3 {
    padding-top: 1em;
    font-weight: 700;
    font-size: 26px;
}

h2 {
    padding-top: 1em;
    font-weight: 900;
    font-size: 28px;
}

h1 {
    font-weight: 900;
    font-size: 30px;
}

/* specials */

blockquote {
    margin-top: 1em;
    padding-left: 1em;
    padding-right: 1em;
}

blockquote > p:first-child {
    padding-top: 1em;
}

blockquote > p:last-child {
    padding-bottom: 1em;
}

ol, ul {
    margin-left: 2em;
}

img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
}

/* layouts */

li > p {
    padding-top: 0;
}

#everything {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

#article > article {
    padding: calc(min(10%, 7em));
    position: relative;
    height: auto;
    width: auto;
}

#markdown {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

#footer {
    position: relative;
    padding: calc(min(10%, 7em));
}

#sitemap {
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 0.2em;
    text-decoration-thickness: from-font;
}

a:hover {
    text-decoration-line: underline;
}

#footer a {
    position: relative;
    min-width: 5.5em;
    display: inline-block;
    margin-right: 4px;
}

.university > h3, .category > h4 {
    display: block;
}

.university {
    display: flex;
}

@media (orientation: portrait) {
    .university {
        flex-direction: column;
    }
}

@media (orientation: landscape) {
    .university {
        flex-direction: row;
    }
}

code {
    font-family: monospace;
    font-size: 0.8em;
    padding: 0.5em 0.4em 0.4em 0.4em;
    margin: 0 0.4em;
    background-color: rgba(128, 128, 128, 0.1);
    border-radius: 0.2em;
}

:root {
    --primary-color: #AF1E24;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #FF6E74;
    }
}

#footer > a {
    left: 50%;
    transform: translateX(-50%);
    font-family: sans-serif;
    font-size: 14px;
    color: #80808080;
}

#links {
    position: relative;
    text-align: center;
    margin-top: 6em;
}

#links a {
    margin: 2px;
    padding: 0;
    min-width: 0;
}

#links img {
    opacity: 1;
    width: 20px;
    transition-duration: 300ms;
}

#links img:hover {
    filter: brightness(120%);
}

@media (max-width: 550px) {
    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 23px;
    }

    h3 {
        font-size: 21px;
    }

    h4 {
        font-size: 19px;
    }

    h5 {
        font-size: 17px;
    }

    p, h6, li, hr {
        font-size: 15px;
    }

    ol, ul {
        margin-left: 1.5em;
    }

    .category a {
        font-size: 13px;
    }

    .category {
        line-height: 1.4em !important;
    }
}
